package dt02;

public class AnimalOperator {

/*    public void useAnimal(Cat c){//Cat c=new Cat;
        c.eat();
    }
    public void useAnimal(Dog d){//Dog d=new Dog
        d.eat();
    }*/
    public void useAnimal(Animal a){
        //Animal a=new Cat();
        // Animal a=new Dog();

        a.eat();
        //多态形式不能访问具体的子类特有的功能
//        a.lookdoor();
    }
}